import pytest
import os
from random import randint

if __name__ == '__main__':
    pytest.main(["-s","-v","--alluredir=./report/allure-results","--clean-alluredir"])
    os.system("allure generate ./report/allure-results -o ./report/allure-report --clean ")
    port = randint(1000, 9999)
    # 打开报告
    # os.system("allure open ./report/allure-report --port {}".format(port))